/**
 * 
 */
package com.cms.service;

import java.util.List;

import com.cms.model.Channel;
import com.cms.model.ChannelTerraceInfo;
import com.model.Admin;

/**
 * @author jun.huang
 *
 */
public interface ChannelService 
{
	public Channel getChannel(int id);
	public List<Channel> getChannels();
	public List<Channel> getChannelsByAdmin(Admin admin);
	boolean insertChannel(Channel channel);
	boolean updateChannel(Channel channel);
	boolean deleteChannel(Channel channel); 
	boolean deleteChannel1(Channel channel); 
	public List<Channel> getChannels(String txt_keyword);
	List<Channel> getChannelsByType(String type);
	/**
	 * 根据渠道Id查找平台信息
	 * @param channelId
	 * @return
	 */
	public List<ChannelTerraceInfo> getBychannelId(Integer channelId);
	
	public List<ChannelTerraceInfo> getChannelTerraceInfos();
	
	//更新渠道平台信息
	public boolean updateChannelTerrace(Channel channel,List<ChannelTerraceInfo> channelTerraceInfos);
	
	//添加渠道信息时,且添加渠道平台关联信息
	public boolean insertChannelTerrace(Channel channel,List<ChannelTerraceInfo> channelTerraceInfos);
	
}
